<style type="text/css">
    .stateLabel{height:35px;line-height:35px;float:left;display:inline-block;margin:0;cursor:pointer;}
    .shop_sort .shop_sort_title{width:12%;}
    .shop_sort_set .shop_sort_text{width:350px;}
</style>
<div class="comm-top">
	<h4 style="margin-bottom:0">微信授权配置
        <span style="font-size:12px;color:#aaa;font-weight:normal;">（授权配置信息：登陆公众平台，进入高级功能 -> 开发者模式 -> 申请接口的，然后填入下面表单中。）</span>
    </h4>
	<div class="add_page_top"></div>
</div>
<div style="height:20px;"></div>
<div class="shop_sort_box">
    <form role="form" method="post" id='for_m'>
        <div id="reply_keyword_div" class="shop_sort">
			<div class="shop_sort_title"><h4>Appid：</h4></div>
			<div class="shop_sort_set">
                <input name="app_id" type="text" class="shop_sort_text" value="<{$row.appid}>" />
			</div>
        </div>
        <div id="reply_keyword_div" class="shop_sort">
			<div class="shop_sort_title"><h4>AppSecret：</h4></div>
			<div class="shop_sort_set">
                <input name="app_Secret" type="text" class="shop_sort_text" value="<{$row.appsecret}>" />
			</div>
        </div>
		<div class="shop_sort">
			<div class="shop_sort_title">
				<h4>&nbsp;</h4>
			</div>
			<div class="shop_sort_set">
				<span onclick="saveform(this)" id="saveBtn" class="btngreen30">提交保存</span>
			</div>
		</div>
    </form>
</div>
<script>
	//提交保存
	function saveform(obj){

		$.ajax({
			type: "POST",
			url:"menu_ajax_auth.php",
			data:$('#for_m').serialize(),// 你的formid
			async: false,
			error: function(request) {
				alert("Connection error");
			},
			success: function(result){
			
				if(result=='success'){
                    note_info('保存成功',obj);
				}else{
					note_info('错误原因:'+result,obj,'warn');
				}
			}
		})
	}
</script>